﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SharpArch.NHibernate;
using ADIGRE.Domain;

namespace ADIGRE.Infrastructure.Queries.Entrada
{
    public class EntradaQuery : NHibernateQuery<Domain.Entrada>, IEntradaQuery 
    {
        public override IList<Domain.Entrada> ExecuteQuery()
        {
            throw new NotImplementedException();
        }

        public IList<Domain.Entrada> GetAllEntrada()
        {
            return Session.QueryOver<Domain.Entrada>()
                    .WhereNot(x => x.IsExcluido).And(x => x.IsEntrada)
                    .List();
        }

    }
}
